<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<a href="https://www.e-learn.cn/topic/1062608">Why is Blob of Array smaller than Blob of Uint8Array?</a>

第一种，直接传入buffer，Blob 会直接以字符串的形式读取 Uint8Array 里面的值，这和当做 数组没有什么区别。
第二种，可以找到 Uint8Array 对应的内存地址，通过二进制读取。
<script>
  var arr = new Uint8Array(25);
  arr.fill(255);
  var nowrap = new Blob(arr);
  var wrapped = new Blob([arr]);
  test(nowrap, 'no wrap');
  test(wrapped, 'wrapped');
  console.log(nowrap)
  console.log(wrapped)

  function test(blob, msg) {
    var reader = new FileReader();
    reader.onload = e => console.log(msg, reader.result);
    reader.readAsText(blob);
  }
</script>
</body>
</html>
